﻿import 'package:get/get.dart';
import 'heart_rate_view.dart';
import 'heart_rate_logic.dart';
import 'heart_rate_variability_view.dart';
import 'heart_rate_variability_logic.dart';

/// 心率模块路由配置
class HeartRateRoutes {
  /// 心率主页
  static const String heartRate = '/heart-rate';
  
  /// 心率变异性页
  static const String heartRateVariability = '/heart-rate/variability';

  static final List<GetPage> routes = [
    GetPage(
      name: heartRate,
      page: () => const HeartRateView(),
      binding: BindingsBuilder(() {
        Get.lazyPut(() => HeartRateLogic());
      }),
    ),
    GetPage(
      name: heartRateVariability,
      page: () => const HeartRateVariabilityView(),
      binding: BindingsBuilder(() {
        Get.lazyPut(() => HeartRateVariabilityLogic());
      }),
    ),
  ];
}
